package com.bw.repair.model

import com.bw.common.entity.BaseRes
import com.bw.repair.api.RepairApiServer
import com.bw.repair.entity.AddRepairEntity
import com.bw.repair.entity.RepairEntityItem
import javax.inject.Inject

class RepairRepository @Inject constructor(private val apiServer: RepairApiServer) {
    //维修列表
    suspend fun loadRepairData():BaseRes<List<RepairEntityItem>>{
        return apiServer.loadRepairData()
    }

    //添加维修
    suspend fun loadAddRepairData(addRepair:AddRepairEntity):BaseRes<AddRepairEntity>{
        return apiServer.loadAddRepairData(addRepair)
    }
}